import React, {Component} from 'react';
import {Route, Switch} from 'react-router-dom';
import EducationalSubject from './educational_subject';
import EducationalTraining from './educational_training';

export default class EducationalIndex extends Component {

    render() {
        return (
            <div className="education-set-score education-set-subject">
                <div className="education-set row">
                    <div className="text-center">
                        <h2>教育培训</h2>
                        <div className="welding-set-gutter-line">
                            <hr/>
                            <span/>
                            <hr/>
                        </div>
                        <h3>EDUCATION AND TRAINING</h3></div>
                </div>

                <Switch>
                    <Route path="/educational" exact component={EducationalTraining}/>
                    <Route path="/educational/educational_training" exact component={EducationalSubject}/>
                </Switch>
            </div>
        );
    }
}
